﻿using RpcClient.Interface;
using RpcSync.Service.Interface;

namespace RpcSync.Service
{
    internal class SyncExtendService : IExtendService
    {
        private INodeRefreshService _Node;
        public SyncExtendService(INodeRefreshService node)
        {
            this._Node = node;
        }

        public string Name => "SyncExtendService";

        public void Load(IRpcService service)
        {
            service.InitComplating += Service_InitComplating;
        }

        private void Service_InitComplating()
        {
            _Node.Init();
        }
    }
}
